dhcpv4: fix DNS server option
authorDavid Härdeman <[email protected]>
Fri, 12 Dec 2025 20:30:18 +0000 (21:30 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sat, 13 Dec 2025 10:43:30 +0000 (11:43 +0100)
commite8b7fdea8d5e39c263514204642865c195a3294f
tree2c9d71005f92db176c6a8ea23a9e1b03f30c5e1a
parentb84553e496a3e210c026a4fb6bf6f4576b72e937
dhcpv4: fix DNS server option

The iface->dhcpv4_own_ip struct is not a struct in_addr, so change the
code so that the iov takes the actual IPv4 address.

Closes: https://github.com/openwrt/odhcpd/issues/344
Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/345
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c